<#macro username_str>
	<#if Session["loginedUser"]??>
<a href="/lctwitter/message/list-user?userId=${Session["loginedUser"].userId}">${Session["loginedUser"].fullName}</a>
	<#else>
游客
	</#if>
</#macro>

<#macro user_location_str>
	<#if Session["loginedUser"]??>
<a href="/lctwitter/message/list?locationId=${Session["loginedUser"].location.id}">${Session["loginedUser"].location.name}</a>
	<#else>
异次元空间
	</#if>
</#macro>

<#macro logout_str>
	<a href="/lctwitter/user/login-page">
		<#if Session["loginedUser"]??>
[退出]
		<#else>
[登陆]
		</#if>
	</a>
</#macro>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${title}</title>
</head>
<body>
<div>
你好，<@username_str/>，你位于<@user_location_str/>。<@logout_str/>
		<br/>
		<br/>
${body}
</div>
</body>
</html>